<button class="test_share">测试地址</button>

<script src="//cdn.bootcss.com/jquery/1.12.1/jquery.js"></script>
<script type="text/javascript" charset="utf-8">

    $('.test_share').click(function() {
        WeixinJSBridge.invoke('editAddress', <?=$config?>, function(res) {
            $('body').append(res)
        });
    })


</script>